// 17 财务管理 20
export default {
  path: '/fmmanage',
  name: 'fmmanage',
  icon: 'property-safety',
  authority: ['business:antd:fm:socaccu'],
  routes: [
    {
      path: '/fmmanage/remitclaim',
      name: 'remitclaim',
      hideChildrenInMenu: true,
      authority: ['business:fm:claim'],
      routes: [
        {
          path: '/fmmanage/remitclaim',
          redirect: '/fmmanage/remitclaim/index',
        },
        {
          path: '/fmmanage/remitclaim/index',
          component: './FmManage/RemitClaim/Index',
        },
        {
          path: '/fmmanage/remitclaim/claimPage',
          component: './FmManage/RemitClaim/ClaimPage',
        },
        {
          path: '/fmmanage/remitclaim/claimDetail',
          component: './FmManage/RemitClaim/ClaimDetail',
        },
        {
          path: '/fmmanage/remitclaim/remitDetail',
          component: './FmManage/RemitClaim/RemitDetail',
        },
        {
          path: '/fmmanage/remitclaim/claimCancel',
          component: './FmManage/RemitClaim/ClaimDetail',
        },
      ],
    },
    {
      path: '/fmmanage/invoice',
      name: 'invoice',
      authority: ['business:fm:invoice'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/fmmanage/invoice',
          redirect: '/fmmanage/invoice/index',
        },
        {
          path: '/fmmanage/invoice/index',
          component: './FmManage/Invoice/Index',
        },
        {
          path: '/fmmanage/invoice/openinv',
          name: 'openinv',
          component: './FmManage/Invoice/OpenInv',
        },
        {
          path: '/fmmanage/invoice/invrecorddetail',
          name: 'invrecorddetail',
          component: './FmManage/Invoice/InvRecordDetail',
        },
        {
          path: '/fmmanage/invoice/invruledetail',
          name: 'invruledetail',
          component: './FmManage/Invoice/InvRuleDetail',
        },
        {
          path: '/fmmanage/invoice/costcenterinvdetail',
          name: 'costcenterinvdetail',
          component: './FmManage/Invoice/CostCenterInvDetail',
        },
        {
          path: '/fmmanage/invoice/editinvrule',
          component: './FmManage/Invoice/EditInvRule',
        },
        // 成本中心
        {
          path: '/fmmanage/invoice/costcenter',
          component: './FmManage/Invoice/CostCenter',
        },
      ],
    },
    {
      path: '/fmmanage/payapply',
      name: 'payapply',
      hideChildrenInMenu: true,
      authority: ['business:fm:pay'],
      routes: [
        {
          path: '/fmmanage/payapply',
          redirect: '/fmmanage/payapply/index',
        },
        {
          path: '/fmmanage/payapply/index',
          component: './FmManage/Payapply/Index',
        },
        {
          path: '/fmmanage/payapply/detail',
          component: './FmManage/Payapply/Detail',
        },
        {
          path: '/fmmanage/payapply/payapplysubmit',
          component: './FmManage/Payapply/PayApplySubmit',
        },
        {
          path: '/fmmanage/payapply/canclefmpay',
          component: './FmManage/Payapply/Detail',
        },
      ],
    },
    {
      path: '/fmmanage/onebilling',
      name: 'onebilling',
      authority: ['es:charge:once'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/fmmanage/onebilling',
          redirect: '/fmmanage/onebilling/index',
        },
        {
          path: '/fmmanage/onebilling/index',
          component: './ChargeManage/OnceChargeCs/Index',
        },
        {
          path: '/fmmanage/onebilling/customeradd',
          name: 'customeradd',
          component: './ChargeManage/OnceChargeCs/CustomerAdd',
        },
        {
          path: '/fmmanage/onebilling/customerupdate',
          name: 'customerupdate',
          component: './ChargeManage/OnceChargeCs/CustomerUpdate',
        },
        {
          path: '/fmmanage/onebilling/customerdetail',
          name: 'customerdetail',
          component: './ChargeManage/OnceChargeCs/CustomerDetail',
        },
        {
          path: '/fmmanage/onebilling/employeeadd',
          name: 'employeeadd',
          component: './ChargeManage/OnceChargeCs/EmployeeAdd',
        },
        {
          path: '/fmmanage/onebilling/employeeupdate',
          name: 'employeeupdate',
          component: './ChargeManage/OnceChargeCs/EmployeeUpdate',
        },
        {
          path: '/fmmanage/onebilling/employeedetail',
          name: 'employeedetail',
          component: './ChargeManage/OnceChargeCs/EmployeeDetail',
        },
        {
          path: '/fmmanage/onebilling/supplieradd',
          name: 'supplieradd',
          component: './ChargeManage/OnceChargeCs/SupplierAdd',
        },
        {
          path: '/fmmanage/onebilling/supplierupdate',
          name: 'supplierupdate',
          component: './ChargeManage/OnceChargeCs/SupplierUpdate',
        },
        {
          path: '/fmmanage/onebilling/supplierdetail',
          name: 'supplierdetail',
          component: './ChargeManage/OnceChargeCs/SupplierDetail',
        },
      ],
    },
    {
      path: '/fmmanage/rebate',
      name: 'rebate',
      hideChildrenInMenu: true,
      authority: ['business:fm:rebate'],
      routes: [
        {
          path: '/fmmanage/rebate',
          redirect: '/fmmanage/rebate/index',
        },
        {
          path: '/fmmanage/rebate/index',
          component: './FmManage/Rebate/Rebate',
        },
        {
          path: '/fmmanage/rebate/add',
          name: 'add',
          component: './FmManage/Rebate/Add',
        },
        {
          path: '/fmmanage/rebate/detail',
          name: 'detail',
          component: './FmManage/Rebate/Detail',
        },
        {
          path: '/fmmanage/rebate/update',
          name: 'update',
          component: './FmManage/Rebate/Add',
        },
        {
          path: '/fmmanage/rebate/batchadd',
          name: 'batchadd',
          component: './FmManage/Rebate/BatchAdd',
        },
      ],
    },
  ],
};
